var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2UIManager = require("UIManager");
var $2BaseUIView = require("BaseUIView");
var $2UIPLoading = require("UIPLoading");
var $2UIVMain = require("UIVMain");
var $2gameBefore = require("gameBefore");
var $2NodeManager = require("NodeManager");
var $2Platformconf = require("Platformconf");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_UIVHome = /* */function (_s$default4) {
  function _ctor() {
    var _this134;
    babel_classCallCheck(this, _ctor);
    _this134 = _callSuper(this, _ctor, arguments);
    _this134.startbutton = null;
    return _this134;
  }
  babel_inherits(_ctor, _s$default4);
  return babel_createClass(_ctor, [{
    key: "onShow",
    value: function onShow() {
      var _this135 = this;
      babel_get(babel_getPrototypeOf(_ctor.prototype), "onShow", this).call(this);
      $2NodeManager.default.Instance.closeTiliView();
      $2UIManager.UIManager.getInstance().showUI($2UIPLoading.default, function (e) {
        e.loadGamePrefab(_this135, "game_2");
        $2UIManager.UIManager.getInstance().showUI($2UIVMain.default, function () {
          $2NodeManager.default.Instance.openTiliView();
        });
      });
      $2Platformconf.default.PlatformType === $2Platformconf.ePlatformType.WXGame && cc.Canvas.instance.node.getComponent($2gameBefore.default).BannerShow();
    }
  }]);
}($2BaseUIView.default);
def_UIVHome.className = "UIVHome";
cc__decorate([ccp_property(cc.Node)], def_UIVHome.prototype, "startbutton", undefined);
def_UIVHome = cc__decorate([ccp_ccclass], def_UIVHome);
exports.default = def_UIVHome;